var render = function () {
  var _vm = this;
  var _h = _vm.$createElement;
  var _c = _vm._self._c || _h;
  return _c(
    "div",
    [
      _c(
        "div",
        { staticClass: "headerWrap" },
        [_c("x-header", { staticClass: "header" }, [_vm._v("任务中心")])],
        1
      ),
      _vm._v(" "),
      _c("div", { staticClass: "h5-tab-wrap task-wrap" }, [
        _c(
          "div",
          { staticClass: "tab-public tab-fixed" },
          [
            _c(
              "tab",
              {
                staticClass: "top-tabNav",
                attrs: { "line-width": 2 },
                model: {
                  value: _vm.curIndex,
                  callback: function ($$v) {
                    _vm.curIndex = $$v;
                  },
                  expression: "curIndex",
                },
              },
              _vm._l(_vm.taskData, function (item, curIndex) {
                console.log(item)
                console.log(curIndex)

                return _c(
                  "tab-item",
                  { key: curIndex, attrs: { selected: item === curIndex } },
                  [
                    _c("span", [
                      _vm._v(_vm._s(item.name)),
                      _vm.hasFinish(curIndex) ? _c("i") : _vm._e(),
                    ]),
                  ]
                );
              })
            ),
          ],
          1
        ),
        _vm._v(" "),
        _c(
          "div",
          { staticClass: "swiper-wrap" },
          [
            _c(
              "swiper",
              {
                attrs: { "show-dots": false },
                model: {
                  value: _vm.curIndex,
                  callback: function ($$v) {
                    _vm.curIndex = $$v;
                  },
                  expression: "curIndex",
                },
              },
              _vm._l(_vm.taskData, function (taskListCon, index1) {
                return _c(
                  "swiper-item",
                  { key: index1 },
                  [
                    taskListCon.data.length
                      ? _c(
                          "scroll",
                          {
                            ref: "scroll",
                            refInFor: true,
                            staticClass: "task-scroll",
                            attrs: { pullDownRefresh: _vm.pullDownRefresh },
                            on: { pullingDown: _vm.pullingDown },
                          },
                          [
                            _c(
                              "div",
                              { staticClass: "tab-swiper taskList" },
                              [
                                index1 == 0 &&
                                taskListCon.data[0].betting_need_money
                                  ? _c("div", { staticClass: "actRuleCon" }, [
                                      _c("h1", { staticClass: "dialog-tit" }, [
                                        _vm._v("活动规则说明"),
                                      ]),
                                      _vm._v(" "),
                                      _c("p", [
                                        _vm._v(
                                          "完成以下任意任务即可参与平台常规任务和每日签到活动："
                                        ),
                                      ]),
                                      _vm._v(" "),
                                      _c("p", { staticClass: "text-gray" }, [
                                        _vm._v("1. 当天累计充值达"),
                                        _c(
                                          "span",
                                          { staticClass: "text-red" },
                                          [
                                            _vm._v(
                                              _vm._s(
                                                taskListCon.data[0]
                                                  .recharge_need_money
                                              )
                                            ),
                                          ]
                                        ),
                                        _vm._v("元，当前累计充值"),
                                        _c(
                                          "span",
                                          { staticClass: "text-red" },
                                          [
                                            _vm._v(
                                              _vm._s(
                                                taskListCon.data[0]
                                                  .recharge_money
                                              )
                                            ),
                                          ]
                                        ),
                                        _vm._v("元，还差"),
                                        _c(
                                          "span",
                                          { staticClass: "text-red" },
                                          [
                                            _vm._v(
                                              _vm._s(
                                                taskListCon.data[0]
                                                  .recharge_need_money -
                                                  taskListCon.data[0]
                                                    .recharge_money
                                              )
                                            ),
                                          ]
                                        ),
                                        _vm._v("元"),
                                      ]),
                                      _vm._v(" "),
                                      _c("p", { staticClass: "text-gray" }, [
                                        _vm._v("2. 当天累计投注达"),
                                        _c(
                                          "span",
                                          { staticClass: "text-red" },
                                          [
                                            _vm._v(
                                              _vm._s(
                                                taskListCon.data[0]
                                                  .betting_need_money
                                              )
                                            ),
                                          ]
                                        ),
                                        _vm._v("元，当前累计投注"),
                                        _c(
                                          "span",
                                          { staticClass: "text-red" },
                                          [
                                            _vm._v(
                                              _vm._s(
                                                taskListCon.data[0]
                                                  .betting_money
                                              )
                                            ),
                                          ]
                                        ),
                                        _vm._v("元，还差"),
                                        _c(
                                          "span",
                                          { staticClass: "text-red" },
                                          [
                                            _vm._v(
                                              _vm._s(
                                                taskListCon.data[0]
                                                  .betting_need_money -
                                                  taskListCon.data[0]
                                                    .betting_money
                                              )
                                            ),
                                          ]
                                        ),
                                        _vm._v("元"),
                                      ]),
                                    ])
                                  : _vm._l(taskListCon.data, function (
                                      item,
                                      index
                                    ) {
                                      return _c("dl", { key: index }, [
                                        _c(
                                          "dt",
                                          {
                                            class: [
                                              item.id == 1
                                                ? "No1"
                                                : item.id == 2
                                                ? "No2"
                                                : item.id == 3
                                                ? "No3"
                                                : item.id == 4
                                                ? "No4"
                                                : item.id == 5
                                                ? "No5"
                                                : item.id == 6
                                                ? "No6"
                                                : item.id == 7
                                                ? "No7"
                                                : item.id == 8
                                                ? "No8"
                                                : item.id == 9
                                                ? "No9"
                                                : item.id > 9 && item.id < 20
                                                ? "No10"
                                                : item.id == 24
                                                ? "No10"
                                                : item.id == 20
                                                ? "No11"
                                                : item.id == 21
                                                ? "No12"
                                                : item.id == 22
                                                ? "No13"
                                                : "",
                                            ],
                                          },
                                          [
                                            _c("img", {
                                              attrs: {
                                                src: require("../../../assets/images/personalCenter/taskCenter_icon@2x.png"),
                                                alt: "",
                                              },
                                            }),
                                          ]
                                        ),
                                        _vm._v(" "),
                                        _c("dd", [
                                          _c("h5", [_vm._v(_vm._s(item.name))]),
                                          _vm._v(" "),
                                          _c(
                                            "p",
                                            { staticClass: "money text-red" },
                                            [
                                              _vm._v(
                                                _vm._s(item.money) + "元宝"
                                              ),
                                            ]
                                          ),
                                          _vm._v(" "),
                                          _c(
                                            "div",
                                            {
                                              staticClass: "ruleToggle",
                                              class: [
                                                item.seen ? "ruleActive" : "",
                                              ],
                                              on: {
                                                click: function ($event) {
                                                  _vm.toggleRule(index);
                                                },
                                              },
                                            },
                                            [
                                              _c(
                                                "span",
                                                { staticClass: "ruleTit" },
                                                [
                                                  _vm._v("点击查看规则"),
                                                  _c("i", {
                                                    staticClass: "arrow",
                                                  }),
                                                ]
                                              ),
                                              _vm._v(" "),
                                              _c("p", {
                                                staticClass: "ruleCon",
                                                domProps: {
                                                  innerHTML: _vm._s(
                                                    item.explain
                                                  ),
                                                },
                                              }),
                                            ]
                                          ),
                                          _vm._v(" "),
                                          _c(
                                            "div",
                                            { staticClass: "taskRight" },
                                            [
                                              _c(
                                                "div",
                                                { staticClass: "taskState" },
                                                [
                                                  item.task_state != 3
                                                    ? [
                                                        item.id == 7 &&
                                                        _vm.getSignObj
                                                          .signState == 0
                                                          ? _c("p", [
                                                              _c(
                                                                "em",
                                                                {
                                                                  staticClass:
                                                                    "text-red",
                                                                },
                                                                [
                                                                  _vm._v(
                                                                    _vm._s(
                                                                      item.count
                                                                    )
                                                                  ),
                                                                ]
                                                              ),
                                                              _vm._v("/7"),
                                                            ])
                                                          : _vm._e(),
                                                      ]
                                                    : _vm._e(),
                                                  _vm._v(" "),
                                                  item.task_state == 2
                                                    ? [
                                                        item.id == 8 &&
                                                        item.task_state == 2
                                                          ? _c("p", [
                                                              _c(
                                                                "em",
                                                                {
                                                                  staticClass:
                                                                    "text-red",
                                                                },
                                                                [_vm._v("0")]
                                                              ),
                                                              _vm._v("/1"),
                                                            ])
                                                          : item.id == 8 &&
                                                            item.task_state == 1
                                                          ? _c("p", [
                                                              _c(
                                                                "em",
                                                                {
                                                                  staticClass:
                                                                    "text-red",
                                                                },
                                                                [_vm._v("1")]
                                                              ),
                                                              _vm._v("/1"),
                                                            ])
                                                          : item.id == 9
                                                          ? _c("p", [
                                                              _c(
                                                                "em",
                                                                {
                                                                  staticClass:
                                                                    "text-red",
                                                                },
                                                                [
                                                                  _vm._v(
                                                                    _vm._s(
                                                                      item.recharge
                                                                    )
                                                                  ),
                                                                ]
                                                              ),
                                                              _vm._v(
                                                                "/" +
                                                                  _vm._s(
                                                                    item.money_bal
                                                                  )
                                                              ),
                                                              _c("i", {
                                                                staticClass:
                                                                  "icon-ingot",
                                                              }),
                                                            ])
                                                          : item.id == 10 ||
                                                            item.id == 11 ||
                                                            item.id == 12 ||
                                                            item.id == 13 ||
                                                            item.id == 14 ||
                                                            item.id == 15 ||
                                                            item.id == 16 ||
                                                            item.id == 17 ||
                                                            item.id == 18 ||
                                                            item.id == 19 ||
                                                            item.id == 24 ||
                                                            item.id == 25 ||
                                                            item.id == 26 ||
                                                            item.id == 27 ||
                                                            item.id == 28 ||
                                                            item.id == 29 ||
                                                            item.id == 30 ||
                                                            item.id == 31 ||
                                                            item.id == 32
                                                          ? _c("p", [
                                                              _c(
                                                                "em",
                                                                {
                                                                  staticClass:
                                                                    "text-red",
                                                                },
                                                                [
                                                                  _vm._v(
                                                                    _vm._s(
                                                                      item.betting
                                                                    )
                                                                  ),
                                                                ]
                                                              ),
                                                              _vm._v(
                                                                "/" +
                                                                  _vm._s(
                                                                    item.money_bal
                                                                  )
                                                              ),
                                                              _c("i", {
                                                                staticClass:
                                                                  "icon-ingot",
                                                              }),
                                                            ])
                                                          : item.id == 20 ||
                                                            item.id == 21 ||
                                                            item.id == 22 ||
                                                            item.id == 23
                                                          ? _c("p", [
                                                              _c(
                                                                "em",
                                                                {
                                                                  staticClass:
                                                                    "text-red",
                                                                },
                                                                [
                                                                  _vm._v(
                                                                    _vm._s(
                                                                      item.complete_task
                                                                    )
                                                                  ),
                                                                ]
                                                              ),
                                                              _vm._v(
                                                                "/" +
                                                                  _vm._s(
                                                                    item.total_task
                                                                  )
                                                              ),
                                                            ])
                                                          : _vm._e(),
                                                      ]
                                                    : _vm._e(),
                                                ],
                                                2
                                              ),
                                              _vm._v(" "),
                                              item.task_state == 1
                                                ? _c(
                                                    "a",
                                                    {
                                                      staticClass:
                                                        "taskBtn taskBtn-red",
                                                      attrs: {
                                                        href:
                                                          "javascript:void(0);",
                                                      },
                                                      on: {
                                                        click: function (
                                                          $event
                                                        ) {
                                                          _vm.getAward(
                                                            item.task_prize_id,
                                                            index,
                                                            item.money
                                                          );
                                                        },
                                                      },
                                                    },
                                                    [_vm._v("领取")]
                                                  )
                                                : item.task_state == 2 &&
                                                  item.id < 7
                                                ? _c(
                                                    "router-link",
                                                    {
                                                      staticClass:
                                                        "taskBtn taskBtn-yellow",
                                                      attrs: {
                                                        to: {
                                                          path:
                                                            item.id == 1
                                                              ? "/bank"
                                                              : item.id == 2
                                                              ? "/personal/revisePage?type=qq&qq="
                                                              : item.id == 3
                                                              ? "/personal/revisePage?type=weixin&weixin="
                                                              : item.id == 4
                                                              ? "/personal/revisePage?type=email&email="
                                                              : item.id == 5
                                                              ? "/personal/revisePage?type=nickname&nickname="
                                                              : item.id == 6
                                                              ? "/personal"
                                                              : "",
                                                        },
                                                      },
                                                    },
                                                    [
                                                      item.id == 5 ||
                                                      item.id == 6
                                                        ? _c("span", [
                                                            _vm._v("去修改"),
                                                          ])
                                                        : _c("span", [
                                                            _vm._v("去绑定"),
                                                          ]),
                                                    ]
                                                  )
                                                : item.task_state == 2 &&
                                                  (item.id == 20 ||
                                                    item.id == 21 ||
                                                    item.id == 22)
                                                ? _c(
                                                    "a",
                                                    {
                                                      staticClass:
                                                        "taskBtn taskBtn-gray",
                                                      attrs: {
                                                        href:
                                                          "javascript:void(0);",
                                                      },
                                                    },
                                                    [_vm._v("领取")]
                                                  )
                                                : item.task_state == 2 &&
                                                  item.id == 7 &&
                                                  _vm.getSignObj.signState == 0
                                                ? _c(
                                                    "a",
                                                    {
                                                      staticClass:
                                                        "taskBtn taskBtn-red",
                                                      attrs: {
                                                        href:
                                                          "javascript:void(0);",
                                                      },
                                                      on: {
                                                        click: function (
                                                          $event
                                                        ) {
                                                          _vm._getSignCont(
                                                            index
                                                          );
                                                        },
                                                      },
                                                    },
                                                    [_vm._v("签到")]
                                                  )
                                                : (item.task_state == 2 &&
                                                    item.id == 8) ||
                                                  (item.task_state == 2 &&
                                                    item.id == 9)
                                                ? _c(
                                                    "router-link",
                                                    {
                                                      staticClass:
                                                        "taskBtn taskBtn-yellow",
                                                      attrs: {
                                                        to: {
                                                          path: "/recharge",
                                                        },
                                                      },
                                                    },
                                                    [_vm._v("去充值")]
                                                  )
                                                : (item.task_state == 2 &&
                                                    item.id > 9 &&
                                                    item.id < 20) ||
                                                  (item.task_state == 2 &&
                                                    item.id > 23)
                                                ? _c(
                                                    "a",
                                                    {
                                                      staticClass:
                                                        "taskBtn taskBtn-yellow",
                                                      attrs: {
                                                        href:
                                                          "javascript:void(0);",
                                                      },
                                                      on: { click: _vm.goHome },
                                                    },
                                                    [_vm._v("去投注")]
                                                  )
                                                : item.task_state == 3 ||
                                                  (item.id == 7 &&
                                                    _vm.getSignObj.signState ==
                                                      1)
                                                ? _c(
                                                    "a",
                                                    {
                                                      staticClass:
                                                        "taskBtn taslBtn-complete",
                                                      attrs: {
                                                        href:
                                                          "javascript:void(0);",
                                                      },
                                                    },
                                                    [_vm._v("已完成")]
                                                  )
                                                : _vm._e(),
                                            ],
                                            1
                                          ),
                                        ]),
                                      ]);
                                    }),
                                _vm._v(" "),
                                index1 == 2
                                  ? _c("p", { staticClass: "tips" }, [
                                      _vm._v(
                                        "\n                            注释：任务达成总个数依据今日任务完成数计算，次日将重置计算，未领取的奖励皆为失效处理，本活动的最终解释权归本公司所有\n                        "
                                      ),
                                    ])
                                  : _vm._e(),
                              ],
                              2
                            ),
                          ]
                        )
                      : [
                          _c("img", {
                            staticClass: "noDataImg",
                            attrs: {
                              src: require("../../../assets/images/common/empty.png"),
                              alt: "",
                            },
                          }),
                        ],
                  ],
                  2
                );
              })
            ),
          ],
          1
        ),
      ]),
      _vm._v(" "),
      _c(
        "x-dialog",
        {
          staticClass: "global-dialog signIn-dialog",
          model: {
            value: _vm.signInFlag,
            callback: function ($$v) {
              _vm.signInFlag = $$v;
            },
            expression: "signInFlag",
          },
        },
        [
          _c("div", { staticClass: "dialog-content" }, [
            _c("div", { on: { click: _vm.signInClose } }, [
              _c("span", { staticClass: "vux-close" }),
            ]),
            _vm._v(" "),
            _c("h1", { staticClass: "dialog-tit" }),
            _vm._v(" "),
            _c(
              "div",
              { staticClass: "dialog-con signIn" },
              [
                _c(
                  "ul",
                  _vm._l(7, function (item, index) {
                    return _vm.signStatus.data
                      ? _c(
                          "li",
                          {
                            key: index,
                            class: [
                              _vm.getSignObj.signCurrent - (index + 1) >= 0
                                ? "signed"
                                : _vm.signStatus.data.count == index
                                ? "signCur"
                                : "",
                            ],
                            on: {
                              click: function ($event) {
                                _vm.taskSign(index + 1);
                              },
                            },
                          },
                          [
                            _c("span", [
                              _vm._v("第" + _vm._s(index + 1) + "天"),
                            ]),
                            _vm._v(" "),
                            _c("p", { class: [index == 6 ? "gift" : "ingot"] }),
                            _vm._v(" "),
                            _c("span", [
                              _vm._v(
                                _vm._s(
                                  _vm.getSignObj.signCurrent - (index + 1) >= 0
                                    ? "已领取"
                                    : index == 6
                                    ? "神秘礼物"
                                    : _vm.signMoney + " 元宝"
                                )
                              ),
                            ]),
                          ]
                        )
                      : _vm._e();
                  })
                ),
                _vm._v(" "),
                _c(
                  "x-button",
                  {
                    staticClass: "weui-btn_minRadius",
                    attrs: { type: "warn" },
                    nativeOn: {
                      click: function ($event) {
                        _vm.taskSign();
                      },
                    },
                  },
                  [_vm._v("领取奖励")]
                ),
              ],
              1
            ),
          ]),
        ]
      ),
      _vm._v(" "),
      _c(
        "x-dialog",
        {
          staticClass: "global-dialog signInOK-dialog",
          model: {
            value: _vm.signInOKFlag,
            callback: function ($$v) {
              _vm.signInOKFlag = $$v;
            },
            expression: "signInOKFlag",
          },
        },
        [
          _c("p", {
            class: [_vm.getSignObj.signCurrent < 7 ? "ingot" : "gift"],
          }),
          _vm._v(" "),
          _c("span", [
            _vm._v(
              "+ " +
                _vm._s(
                  _vm.getSignObj.signCurrent < 7
                    ? _vm.signMoney
                    : _vm.signMoneyBal
                ) +
                " 元宝"
            ),
          ]),
        ]
      ),
    ],
    1
  );
};
var staticRenderFns = [];
var esExports = { render: render, staticRenderFns: staticRenderFns };
export default esExports;

//////////////////
// WEBPACK FOOTER
// ./node_modules/_vue-loader@13.7.2@vue-loader/lib/template-compiler?{"id":"data-v-7dcdf55e","hasScoped":true,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vux-loader@1.2.9@vux-loader/src/before-template-compiler-loader.js!./node_modules/_vux-loader@1.2.9@vux-loader/src/template-loader.js!./node_modules/_vue-loader@13.7.2@vue-loader/lib/selector.js?type=template&index=0!./src/components/personalCenter/taskCenter/taskCenter.vue
// module id = null
// module chunks =
